Basic Shiny app example

This is an example of a Shiny app where by selecting a specific value in the top slider causes the bar chart bins to change accordingly

alt text

Including new features

How it started This basic dashboard has two main components a side bar and a plot

alt text

How is it going From this basic dashboard we can expand it to include:

  • Maps
  • KPI
  • Tables
  • Interactive plots using Plotly

Wide range of dashboard layouts

Dashboard with Maps and tables alt text alt text All the plots are interactive allowing user to use tooltips and zoom in or zoom out. Also download image as png.

Dashboard with plots and tabs alt text alt text alt text

Maps example

Dashboard with Maps and tables alt text

  • Pop-up and tooltips display COVID19 Total, recovered and death cases
  • Circles radius are proportional to number of cases per country
  • Dynamic animation: Map changes as data varies in time

KPI combined with line and bar plots

Interactive plotly line charts tabset layout alt text

  • KPI number of cases and day to day percent change
  • Line chart cases by country, selected by drop down menu
  • Top 10 country rates *10,000 cases

Section including tabs

Dashboard with Maps and tables alt text

  • Different plot metrics are allocated on each tab
  • Legend

Dashboard features scripts

  • Shiny script example different feature (R functions)
Feature Function Code
KPI infoBoxOutput() fluidRow(
infoBoxOutput(“Totalrecovered”, width = 3),
infoBoxOutput(“Totaldeaths”, width = 3),
infoBoxOutput(“Date”, width = 3)
),
MAPS infomap dataframe %>%
leaflet() %>%
addTiles() %>%
setView(lng = -10, lat = 20, zoom = 3) %>%
addCircles(lng = ~ Long,
lat = ~Lat,
weight = 5,
radius = ~sqrt(dataframe$Deaths)*1000,